package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.HotProductCategoryRequest;
import com.ytjj.qmyx.admin.model.response.HotProductCategoryResponse;
import com.ytjj.qmyx.mall.model.HotProductCategory;
import lombok.Data;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * 
 * @Version: 1.0
 */
public interface HotProductCategoryDao {

    List<HotProductCategoryResponse> selectList(HotProductCategoryRequest hotProductCategoryRequest);

    Integer insertHotProductCategory(@Param("hotProductId") Integer hotProductId,
                                     @Param("name") String name,
                                     @Param("sort") Integer sort);

    Integer updateHotProductCategory(@Param("name") String name,
                                     @Param("categoryId") Integer categoryId,
                                     @Param("sort") Integer sort);

    Integer removeData(Integer categoryId);

    List<HotProductCategory> getCategoryListByHpi(Integer hotProductId);

    Integer copyCategory(HotProductCategory hotProductCategory);
}
